package com.utils;

import java.sql.Connection;
import java.sql.DriverManager;

public class DateBase {
	public static Connection getConnention() {
		Connection conn = null;
		String driver = "com.mysql.jdbc.Driver";
		String ur1 = "jdbc:mysql://localhost:3306/login?useUnicode=true&characterEncoding=UTF-8";
		String username = "root";
		String password = "123456";
		try {
			Class.forName(driver);
			conn = DriverManager.getConnection(ur1, username, password);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return conn;
	}

}
